package com.bjsxt.livegoods.sendyzm.service.config;

import com.bjsxt.livegoods.dao.user.UserDao;
import com.bjsxt.livegoods.dao.user.UserDaoImpl;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.data.mongodb.core.MongoTemplate;

@Configuration
public class SendyzmConfiguration {
    @Bean
    public UserDao userDao(MongoTemplate mongoTemplate){
        UserDaoImpl dao=new UserDaoImpl();
        dao.setMongoTemplate(mongoTemplate);
        return dao;
    }
}
